using System;
using System.Runtime.InteropServices;

namespace Atomic.Libraries.Mathematics
{
	public static partial class Gsl
	{
		/// <summary>
		/// The real part of the dilogarithm for a real argument $Li_2(x)=\Re\int_0^x Li_1(t)/tdt$, where $Li_1(t)=-\log(1-t)$.
		/// http://en.wikipedia.org/wiki/Dilogarithm
		/// </summary>
		[DllImport("gsl")]
		public static extern double gsl_sf_dilog(double x);
	}
}
